import type { RouteItem } from './menuModel'

/**
 * @description: Login interface parameters
 */
export interface LoginParams {
  username: string
  password: string
}

export type LoginResult = string

/**
 * @description: Get user information return value
 */
export interface GetUserInfoModel {
  roles: string[]
  permissions: string[]
  menus: RouteItem[]
  // 用户id
  user: userModel
}

export interface userModel {
  id: string | number
  avatar: string
  nickname: string
}

